var api = require('../../config/api.js');
var util=require('../../utils/util.js');
const app = getApp()

Page({
  /**
   * 生命周期函数--监听页面加载
   */
  data:{
    article:{}
  },
  articleLists:function(){
    var that = this;
    util.request(api.ArticleListUrl).then(res=>{
      if (res.data.code == 200) {
        that.setData({
          article: res.data.data,
        })
      }
    })
  },
  onLoad: function () {
    this.articleLists()
  }
})
